<extend name="Base/commoncenter"/>

<block name="body">
    <p>
    <ul class="nav nav-pills " role="tablist">
        <li role="presentation" <eq name="active" value="-1">class="active"</eq>><a href="{:U('Center/warehouse?CID=-1')}">全部仓库</a></li>
        <volist name="clist" id="vo">
            <li role="presentation" <eq name="active" value="$vo.country_id">class="active"</eq>><a href="{:U('Center/warehouse?CID='.$vo['country_id'].'')}">{$vo.name_english}仓库</a></li>
        </volist>
    </ul>
</p>
  <hr/>

<empty name="wlist">
    <div class="row">    
        <div style="text-align: center;margin-top: 100px;">
            <p>该国家尚未设立转运仓库</p>      
        </div>    
    </div>
</empty>

<volist name="wlist" id="vo">
    <div class="">
        <div class="row">
            <div class="col-md-8"> <h3><span class="glyphicon glyphicon-home"></span> {$vo.name} 收货地址 <span class="label label-default"> </span></h3></div>
            <div class="col-md-4 text-right"> <h3><a href="{:U('Center/packageadd?WID='.$vo['id'].'')}" class="text-right btn-success btn">入库预约</a> <a href="{:U('package?WID='.$vo['id'].'')}" class="text-right btn-success btn">货物管理</a> </h3> </div>
        </div>
        <hr class="featurette-divider" style="border-color:#F3F3F3;border-bottom: #F3F3F3 3px solid; ">
        <div class="row">
            <div class="col-md-3">
                <a href="#" class="thumbnail">
                    <img src="__IMG__/warehouse2.png" width="250"/>
                </a>   
            </div>
            <div class="col-md-5" style=" border-right: #F3F3F3 solid 3px; text-align:left">
                <address>
                    收件人(person)：<strong>{$vo.person}</strong><br>
                    国家(Country)：	{$vo.country} <br> 
                    州/省(Province)：	{$vo.province} <br> 
                    城市(City)：	{$vo.city}	<br> 
                    地址1(Address)：		{$vo.location} #<strong class="text-danger">U{:session('user_auth.uid')}</strong><br>                    
                    邮编(Zip Code)：	{$vo.zipcode}<br>
                    电话(Tel)：{$vo.phone}                                                                                       </address>
                <small style="color: #17AE92;">{$vo.remark}</small> 
            </div>
            <div class="col-md-4" style="  text-align: center">
                仓库货物<br>
                <span class="HomeTipH4">{$vo.countpackages}</span><br>
                
                <gt name="vo.countwillarraivepackages" value="0"><span class="label label-success">{$vo.countwillarraivepackages}件包裹将要抵达</span></gt>
                <br>
            </div>                                                     
        </div>
    </div>
</volist>
</block>